#pragma once
#include <sys/types.h>
#include <sys/socket.h>


#include <string>



uint16_t gserver_port = 8080;
std::string gserver_ip("124.223.42.84");

#define CONV(t) (struct sockaddr *)(t)
#define Die(code)   \
    do              \
    {               \
        exit(code); \
    } while (0)

enum 
{
    USAGE_ERR = 1,
    SOCKET_ERR,
    BIND_ERR,
    LISTEN_ERR,
    CONNECT_ERR
};